package dao

import (
	"wxcloudrun-golang/db/model"
)

// CounterInterface 计数器数据模型接口
type CounterInterface interface {
	GetCounter(id int32) (*model.CounterModel, error)
	UpsertCounter(counter *model.CounterModel) error
	ClearCounter(id int32) error
}

// CounterInterfaceImp 计数器数据模型实现
type CounterInterfaceImp struct{}

// Imp 实现实例
var Imp CounterInterface = &CounterInterfaceImp{}


// // InformationDAO 信息操作接口
// type InformationDAO interface {
//     CreateWithExtension(info *Information, ext interface{}) error
//     GetWithExtensions(id uint) (*Information, error)
//     ListByType(infoType string, page, pageSize int) ([]*Information, int64, error)
//     SoftDelete(id uint) error
// }



type AgencyInterface interface {
	GetAgency(id int64) (*model.AgencyTransfer, error)
	UpsertAgency(counter *model.AgencyTransfer) error
	ListByType(page, pageSize int) ([]model.AgencyTransfer, int64, error)
	ClearAgency(id int64) error
}


type AgencyInterfaceImp struct{}

var AgencyImp AgencyInterface = &AgencyInterfaceImp{}